#!/bin/bash

# run_bochs.sh
# mounts the correct loopback device, runs bochs, then unmounts.

sudo /sbin/losetup /dev/loop0 $1
sudo mount -o loop /dev/loop0 /mnt2
sudo bochs -q -f ../bochs/bochsrc.txt
sudo umount /dev/loop0
sudo /sbin/losetup -d /dev/loop0
